﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Win32;
using System.IO;
using System.Web.UI.HtmlControls;
using System.Threading;
using System.Collections;

public partial class MasterPage : System.Web.UI.MasterPage
{
    //int IsNewAnno = 0;
    //int IsNewNotice = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
            DBaccess db = new DBaccess();
            SqlDataReader read = db.GetReader("select mname from mr_member where mid='" + Session["mid"].ToString() + "'");
            read.Read();
            //Label1.Text = read.GetValue(0).ToString();
            DataSet ds = db.GetDataSet("select logo from mr_member where mid='" + Session["mid"].ToString() + "'");
            //Image1.ImageUrl = ResolveUrl(ds.Tables[0].Rows[0]["logo"].ToString());
            //Label3.Text = Session["announcement"].ToString();
            //Session["flag"] = "0";
    }
        protected void Logout_Click(object sender, EventArgs e)
    {
            Session["mid"] = null;
            Session["gid"] = null;
            Session.Abandon();
            Response.Redirect("../Login.aspx");
        

    }
}
